package com.soboot.system.exception;

/**
 * @Author:
 * @createTime: 2023年01月04日 17:44:07
 * @version:
 * @Description: 响应结果状态码
 * @Copyright:
 */
public class ResCode {
    /**
     * 返回失败code
     */
    public static final Integer FAIL = 900200;
    /**
     * 创建失败
     */
    public static final Integer CREATE_ERROR = 900210;
    /**
     * 更新失败
     */
    public static final Integer UPDATE_ERROR = 900211;
    /**
     * 查询失败
     */
    public static final Integer GET_ERROR = 900212;
    /**
     * 密码错误
     */
    public static final Integer PWD_ERROR = 900213;
    /**
     * 禁用
     */
    public static final Integer FORBIDDEN = 900214;
    /**
     * TOKEN过期
     */
    public static final Integer TOKEN_OVERDUE = 900215;

    /**
     * 账户锁定
     */
    public static final Integer LOCKED = 900216;

    /**
     * 业务参数错误包括值没有
     */
    public static final Integer PARAM_ERROR = 900217;

    /**
     * 数据库操作错误
     */
    public static final Integer PERSITENCE_ERROR = 900218;

    /**
     * 空指针
     */
    public static final Integer NULLPOINTER_ERROR = 900219;

    /**
     * 上传error
     */
    public static final Integer FILEUPLOAD_ERROR = 900220;
}
